﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:TheGameClient_WorldMap="clr-namespace:TheGameClient.WorldMap" mc:Ignorable="d"
	x:Class="TheGameClient.MapButtonControl"
	d:DesignWidth="290" d:DesignHeight="145">

	<Grid x:Name="LayoutRoot">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="Basic">
				<VisualStateGroup.Transitions>
					<VisualTransition GeneratedDuration="00:00:00.2500000" To="MouseOver">
						<VisualTransition.GeneratedEasingFunction>
							<QuadraticEase EasingMode="EaseInOut"/>
						</VisualTransition.GeneratedEasingFunction>
					</VisualTransition>
					<VisualTransition From="MouseOver" GeneratedDuration="00:00:00.2500000">
						<VisualTransition.GeneratedEasingFunction>
							<QuadraticEase EasingMode="EaseInOut"/>
						</VisualTransition.GeneratedEasingFunction>
					</VisualTransition>
				</VisualStateGroup.Transitions>
				<VisualState x:Name="MouseOver">
					<Storyboard>
						<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="bdrMouseOver" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
							<EasingColorKeyFrame KeyTime="00:00:00" Value="{StaticResource TheGameDarkBlue}"/>
						</ColorAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
				<VisualState x:Name="MouseDown">
					<Storyboard>
						<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="bdrMouseOver" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
							<EasingColorKeyFrame KeyTime="00:00:00" Value="{StaticResource TheGameLightBlue}"/>
						</ColorAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
				<VisualState x:Name="Default"/>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<Grid x:Name="mapButtonGrid">
			<Border x:Name="bdrMouseOver" BorderBrush="Black" BorderThickness="0" CornerRadius="6" IsHitTestVisible="False" Background="#FF424242"/>
			<Border x:Name="border" BorderThickness="2" CornerRadius="5" HorizontalAlignment="Right" d:LayoutOverrides="GridBox" BorderBrush="{StaticResource DefaultWindowBorder}">
				<Border.Background>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#7F191919" Offset="0.6666"/>
						<GradientStop Color="#7F424242"/>
						<GradientStop Color="#7F4C4C4C" Offset="1"/>
					</LinearGradientBrush>
				</Border.Background>
				<TheGameClient_WorldMap:WorldMapControl x:Name="worldMapButton" HorizontalAlignment="Right" Margin="5" OnClick="worldMap_OnClick" SimulateButton="True"/>
			</Border>
			<Border BorderBrush="Black" BorderThickness="0" CornerRadius="5" MouseEnter="BorderMouseEnter" MouseLeave="BorderMouseLeave" MouseLeftButtonDown="BorderMouseLeftButtonDown" MouseLeftButtonUp="BorderMouseLeftButtonUp">
				<Border.Background>
					<RadialGradientBrush RadiusX="1.614" RadiusY="0.569" GradientOrigin="0.494,1.097">
						<GradientStop Color="#BFFFFFFF" Offset="1"/>
						<GradientStop Color="#19FFFFFF" Offset="0.551"/>
						<GradientStop Color="#02FFFFFF" Offset="0.55"/>
					</RadialGradientBrush>
				</Border.Background>
			</Border>
		</Grid>
	</Grid>
</UserControl>